<?php



namespace App\Services\Business\Providers;


use App\Services\Business\Interfaces\CommentServiceInterface;
use App\Services\Business\Services\CommentService;
use Illuminate\Support\ServiceProvider;

use App\Services\Business\Proxies\ConquerServiceProxy;
use App\Services\Business\Interfaces\ConquerServiceInterface;

use App\Services\Business\Services\ProductService;
use App\Services\Business\Interfaces\ProductServiceInterface;
use  App\Services\Business\Interfaces\VideoServiceInterface;
use App\Services\Business\Services\VideoService;
use App\Services\Business\Interfaces\AppraiseServiceInterface;
use App\Services\Business\Services\AppraiseService;

class BusinessServiceRegisterProvider extends ServiceProvider
{
    public function register()
    {

        $this->app->instance(CommentServiceInterface::class, $this->app->make(CommentService::class));
        $this->app->instance(ProductServiceInterface::class, $this->app->make(ProductService::class));
        $this->app->instance(ConquerServiceInterface::class, $this->app->make(ConquerServiceProxy::class));
        $this->app->instance(VideoServiceInterface::class, $this->app->make(VideoService::class));
        $this->app->instance(AppraiseServiceInterface::class, $this->app->make(AppraiseService::class));

    }
}
